From: Kim F. Storm Date: Sun, 16 Mar 2003 20:48:31 +0000 (+0000) Subject: (XChar2b): Move typedef here for consolidation. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~52974 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ec480ce025f9a1668ff48e065b7d36b8ed2632d4;p=emacs.git (XChar2b): Move typedef here for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. --- diff --git a/src/macgui.h b/src/macgui.h index a6ad18fddcf..f0ae1c36397 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -97,6 +97,22 @@ struct MacFontStruct { typedef struct MacFontStruct MacFontStruct; typedef struct MacFontStruct XFontStruct; +/* Structure borrowed from Xlib.h to represent two-byte characters. */ + +typedef struct { + unsigned char byte1; + unsigned char byte2; +} XChar2b; + +#define STORE_XCHAR2B(chp, b1, b2) \ + ((chp)->byte1 = (b1), (chp)->byte2 = (b2)) + +#define XCHAR2B_BYTE1(chp) \ + ((chp)->byte1) + +#define XCHAR2B_BYTE2(chp) \ + ((chp)->byte2) + /* Emulate X GC's by keeping color and font info in a structure. */ typedef struct _XGCValues